#ifndef _PROTO_H
#define _PROTO_H
#define MAX_FILE_NAME_LEN 256-sizeof(long)-sizeof(char)-sizeof(size_t)
#define PORT 61803

#include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
typedef struct _TCB
{
	unsigned char cmd;
	//0 to get a file len
	//1 to get a file segment
	char fileName[MAX_FILE_NAME_LEN];
	long offset;//If cmd==0, this field is not relvent to you.
	size_t dataLen;
} TCB, *pTCB;
/*
struct sockaddr_in { 
	short int sin_family; 
	unsigned short int sin_port;
	struct in_addr sin_addr;
	unsigned char sin_zero[8]; 
};
*/
#endif
